package com.example.rlw.mvpplugintest.takephoto;

import com.example.rlw.mvpplugintest.net.HttpResponseData;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;

/**
 * 描述：上传文件  多文件 加参数
 * Created by rlw on 2019/3/20.
 */
public interface UpLoadService {
    //上传巡河计划 多文件加参数
    @Multipart
    @POST("app/river-patrols/plan")
    Observable<HttpResponseData<Integer>> uploadPatrolDaily(@PartMap Map<String, RequestBody> map, @Part("assistUnits") List<Integer> list,
                                                            @Part("classId") Integer classId, @Part("content") String content, @Part("locEnd") String locEnd,
                                                            @Part("locStart") String locStart, @Part("name") String name, @Part("planDate") String planDate);

}
